package net4;

import java.util.Hashtable;

import android.app.Activity;

import net4.FaWave.R;


public final class FaWaveInitData {
	
	private Activity m_InitDataActivity = null;
	
	public FaWaveInitData(Activity activity){
		m_InitDataActivity = activity;
	}
	public void InitAllData(){
		InitConstValues();
	}
	
	private void InitConstValues(){
		FaWaveConst.PlatformInfoList = new Hashtable<String, PlatformInfo>();
		//初始化新浪微博平台数据
		PlatformInfo info = new PlatformInfo(FaWaveConst.Platform_TSINA, 
    			FaWaveConst.AuthType_OAuth, m_InitDataActivity.getString(R.string.AuthType_OAuth_Name),
    			m_InitDataActivity.getString(R.string.Platform_TSINA_Name));
		FaWaveConst.PlatformInfoList.put(Integer.toString(info.getPlatform()), info);
		//初始化腾讯微博平台数据
		info = new PlatformInfo(FaWaveConst.Platform_TQQ, 
    			FaWaveConst.AuthType_OAuth, m_InitDataActivity.getString(R.string.AuthType_OAuth_Name),
    			m_InitDataActivity.getString(R.string.Platform_TQQ_Name));
		FaWaveConst.PlatformInfoList.put(Integer.toString(info.getPlatform()), info);
	}
}
